package com.katze.boot.applet.ssh.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.katze.boot.applet.ssh.entity.SshProcessEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
* 说  明： 接口
* 作  者：admin
* 日  期：2023-08-16
*/
public interface SshProcessMapper extends BaseMapper<SshProcessEntity> {

    List<SshProcessEntity> findProcessBySession(@Param("sessionId") String sessionId);

    List<String> findProcessNameByOwner(@Param("owner") String owner, @Param("name") String name);

    List<SshProcessEntity> findProcessById(@Param("ids") Collection<String> ids);

    int batchUpdatePid(@Param("list") List<SshProcessEntity> list);
}
